Watson Discovery
Overview
warning
Prerequisite: Watson Disovery Software Requirement
This build consists of three main components:
1. Setup watson Discovery
- New projects, input Project Name, select an option "None of the above — I’m working on a custom project", click "Next"
- select the appropriatae method of upload, click "Next"
- Input Collection Name
- Upper left Hamburger icon -> Manage Collections -> New collections
- Select data source
- If webcrawl, input url links to "Starting URLs" and click "Add" -> Finish
2. Create watsonx and watson Discovery Extensions
Required Steps:
2.1 Create watson Discovery custom extension
- In your assistant, navigate to "Integrations" page.
- Click "Build custom extensions" -> click "Next" -> Input Extension name
Watson Discovery
-> click "Next" - download json file: watson-discovery-query-openapi.json and import file to WA
- click "Next" -> click "Finish"
- Lower Right corner of the Watson Disovery extension, click "Add" -> click "Add" -> click "Next"
- In Authentication page, in the Authentication type dropdown, select "Basic auth"
- For Username enter
apikey
- For password, create and copy a new API key from API key
- For discovery_url, within IBM Cloud -> resource list -> Watson Discovery Instance -> Manage -> Credentials -> URL
- Paste URL into discovery_url and remove
https://
from the beginning of the string
- For Username enter
- Click "Next", click "Finish", click "Close"
2.2 Create watsonx custom extension
- In your assistant, navigate to Integrations page, click "Build custom extension" -> click "Next" -> Input Extension name
watsonx
-> click "Next" . - download json file: watsonx-openapi.json and import file to WA
- click "Next" -> click "Finish"
- Lower Right corner of the watsonx extension, click "Add" -> click "Add" -> click "Next"
- In Authentication page, in the Authentication type dropdown, select "OAuth 2.0"
- For Apikey, create and copy a new API key from API key
- Click "Next", click "Finish", click "Close"
2.3 Integrate watsonx Search using Watson Discovery to Assistant
Upload Actions:
- Download discovery-watsonx-actions.json
- Navigate to "Actions" page, click "Global Settings" icon on the upper right corner
- Navigate to Upload/Download tab, upload the downloaded JSON file discovery-watsonx-actions.json onto the tab or click to select a file from your local system, then click "Upload", and "Uplaod and replace".
- within the Actions page, navigate to "Actions / Variables / Created by you". Set
discovery_project_id
andwatsonx_project_id
session variableinfoWhere to get credentials
- discovery_project_id: within Watson Discovery: Upper left Hamburger icon -> Integrate and deploy -> API Information
- watsonx_project_id:
- Go to watsonX Platform
- Projects (click on project)-> Manage -> General -> Details -> Project ID
No action matches Setup
- Navigate to "All items" -> "Set by assistant" -> "No action matches".
- Click on the "No action matches" action and delete the existing step 1 and step 2.
- "New Step". In the "And then" section, select "go to a subaction" -> select "Search" in the dropdown options -> "Apply".
- "Save" and "Close"
- You're all set. Navigate to "Preview" to test the integration!